package cn.com.surker.production.entity.vo;

import cn.com.surker.enums.ICodeDescEnum;
import cn.com.surker.enums.production.invoice.InvoiceExamineTypeEnum;
import cn.com.surker.production.entity.InvoiceExamine;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author luotao
 * @date 2025/2/13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class InvoiceExamineVo extends InvoiceExamine {

	/**
	 * 审核类型
	 */
	private String examineTypeTxt;

	public String getExamineTypeTxt() {
		InvoiceExamineTypeEnum anEnum = ICodeDescEnum.getEnum(InvoiceExamineTypeEnum.class, getExamineType());
		if (anEnum != null) {
			examineTypeTxt = anEnum.getDescription();
		}
		return examineTypeTxt;
	}
}
